<template>
  <account isPage/>
</template>

<script type="text/javascript">
import account from '@/components/account'
export default {
  name: 'Login',
  components: {
    account
  },
  created () {
    const loginType = this.$route.query.type || 'wxLogin'
    this.$store.dispatch('user/login', { type: loginType })
  }
}
</script>
